﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace Musicallis.Models
{
    public class InicializadorUsuarios : DropCreateDatabaseIfModelChanges<UsuariosContext>
    {
        protected override void Seed(UsuariosContext context)
        {
            var users = new Usuario[] {
                new Usuario() { Nascimento = new DateTime(2012, 07, 30), Nome= "Musicallis" }
            };

            foreach (var user in users)
            {
                context.Usuarios.Add(user);
            }

            // Seeding data here
            context.SaveChanges();
        }
    }
}